package cn.t.utils;


import cn.t.constants.ParamConstants;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author l
 */
public class MsvmUtil {

    public static  String getOrderSn(Long deviceId){
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        String format = simpleDateFormat.format(date);
       return format.concat(deviceId.toString());
    }
    public static  String getBdOrderSn(Object deviceId){
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        String format = simpleDateFormat.format(date);
       return ParamConstants.STRBD.concat(format).concat(deviceId.toString());
    }
}
